package com.kiwi.nixu.common;

/**
 * @Author: zqb
 * @Description: 链表节点类
 * @Date: Created in 17:23 2020/1/22
 * @Create By:
 */

public class LNode {

    /**
     * 数据域
     */
    public Integer data;

    /**
     * 下一个节点的引用
     */
    public LNode next;

    public LNode(int data, LNode next) {
        this.data = data;
        this.next = next;
    }

    public LNode(LNode next) {
        this.next = next;
    }

    public LNode(int data) {
        this.data = data;
    }

    public LNode() {
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public LNode getNext() {
        return next;
    }

    public void setNext(LNode next) {
        this.next = next;
    }
}
